<header class="row header-wrap justify-center pos-r">
    <div class="header row align-c justify-betwaeen pt-5 pb-5">
        <h1 class="logo" title="{{site.name}}">
            <a href="/" class="c-141414">{{site.name}}</a><a href="/"
                class="theme f-16 ml-5">{{site.json.siteSubtitle}}</a>
        </h1>
        {{if nav.length>0}}
            <nav class="nav">
                <ul class="row">
                    <li class="nav-item"><a href="/" title="首页">首页</a></li>
                    {{each nav}}
                    {{if $value.status == 0}}
                    <li class="nav-item">

                        {{if $value.type==0}}
                        <a href="{{$value.path}}/index.html" title="{{$value.name}}">{{$value.name}}</a>
                        {{else}}
                        <a href="{{$value.path}}/page.html" title="{{$value.name}}">{{$value.name}}
                        </a>
                        {{/if}}

                        {{if $value.children && $value.children.length>0}}
                        <ul class="sub-nav">
                            {{each $value.children}}
                                {{if $value.status == 0}}
                                <li class="sub-nav-item">
                                    {{if $value.type==0}}
                                    <a href="{{$value.path}}/index.html" title="{{$value.name}}">{{$value.name}}
                                    </a>
                                    {{else}}
                                    <a href="{{$value.path}}/page.html" title="{{$value.name}}">{{$value.name}}
                                    </a>
                                    {{/if}}
                                </li>
                                {{/if}}
                            {{/each}}
                        </ul>
                        {{/if}}
                    </li>
                    {{/if}}
                    {{/each}}
                </ul>
            </nav>
        {{/if}}
        {{include './search.html'}}
        <div class="ico-open"></div>
    </div>
</header>